package com.atstudying.common.exception;

/**
 * @author Mr.zhneg
 * @create 2020-11-24-0:23
 */
public class NoStockException extends  RuntimeException{
    private Long skuId;
    public NoStockException(Long skuId){
        super("商品id："+skuId+"没有足够的库存了");
    }
    public NoStockException( ){
        super("锁库存失败");
    }

}
